CC=arm-apple-darwin-gcc
LD=$(CC)
LDFLAGS=-lobjc -framework CoreFoundation -framework Foundation -framework UIKit -framework LayerKit -framework CoreGraphics

all:    iStudy

iStudy:  mainapp.o iStudyApp.o SetBrowser.o MFBrowser.o DrillView.o CardView.o
	$(LD) $(LDFLAGS) -v -o $@ $^

%.o:    %.m
		$(CC) -c $(CFLAGS) $(CPPFLAGS) $< -o $@

nice:
		rm -f *.o

clean:
		rm -f *.o iStudy